package com.zmx.dto;

import com.zmx.common.common.dto.BaseDto;
import lombok.Data;
import lombok.ToString;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author zhaomxr
 * null
 */
@Data
@ToString
public class PromoteActiveDto extends BaseDto {

    private static final long serialVersionUID = 2954183666466779066L;
    /**
     * 活动名称
     */
    private String name;

    /**
     * 活动开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date beginDate;
    private String beginDateStr;
    @DateTimeFormat(pattern = "HH:mm:ss") //入参
    @JsonFormat(timezone = "GMT+8", pattern = "HH:mm:ss") //出参
    private Date beginDateL;

    /**
     * 活动结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date endDate;
    private String endSateStr;
    @DateTimeFormat(pattern = "HH:mm:ss") //入参
    @JsonFormat(timezone = "GMT+8", pattern = "HH:mm:ss") //出参
    private Date endDateL;

    /**
     * 是否生效
     */
    private Integer isVaild;

    /**
     * 活动状态
     **/
    private String ActiveStatus;

    /**
     * 排名等级
     */
    private Integer ranking;

    /**
     * 活动类型  0-普通活动，1秒杀活动，2精选生活，3轮播图展示活动，4订单支付成功页推荐, 5首页推荐
     */
    private Integer type;
}
